// 引入redux
import { legacy_createStore } from "redux";
// 创建仓库
// 定义reducer
// 1.初始化数据 2.分支判断 3.返回新状态
import reducerRoot from "./reducers"
import { applyMiddleware } from "redux";
import { thunk } from "redux-thunk";
const store = legacy_createStore(reducerRoot,applyMiddleware(thunk))
export default store